;; PRODUCT: <Enter the product name>
;; PRODUCT-ID: 793a77f6-af6f-47ee-b2d4-d52fd400742d
;; AUTHOR: TallyDeveloper

;;===========================================================
;;Objective:-
;;Display a dialog box and prompt the user to enter Yes or No
;;===========================================================

;;This is a Local variable definition of type Logical
[Variable: lConfirmation]
	Type:Logical

;;Please note that instead of DISPLAYing the report, we are using ALTER which 
;;allows input by the user. If you change it to DISPLAY, the user will not be able to
;;enter any input.
;;===================================================================================
[#Menu: Gateway of Tally]
	Item: My DialogBox: Alter: Rpt Confirmation

[Report: Rpt Confirmation]
	Form: frm Confirmation
	Variable: lConfirmation
	
	;;Set the initial value of Local variable lConfirmation
	Set: lConfirmation: Yes

	;;This sets the title of the Report screen
	Title: "Confirm"
	
[Form: frm Confirmation]
	Part: Prt Title, Prt YesNo
    Full Width  : No
    No Confirm  : Yes
    Space Left  : 5
    Space Right : 5
    Space Top   : 3
    Space Bottom: 3

	[Part: Prt Title]
        Horizontal Align: Centre
        Lines           : Form SubTitle
        Local           : Field : Form SubTitle : Info : "Are you sure [Yes/No]"

	[Part: Prt YesNo]
        Horizontal Align: Centre
        Lines           : ln Confirmation

	[Line: ln Confirmation]
		Add: Field: fldConfirmation

	[Field: fldConfirmation]
		;;Inherit from the pre-defined Logical Field
		Use: Logical Field

		;;The "Set as" attribute is used to set the initial value display in the field	
		Set as: ##lConfirmation			
	
		;;The "Modifies" attribute stores the value entered by the user into the
		;;the Variable lConfirmation
		Modifies: lConfirmation
